﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExpertNewAdd.aspx.cs" Inherits="Wwtfly.BBS.ForeApplication.WebForm.users.ExpertNewAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="css/style.css" rel="stylesheet" type="text/css" />

    <script src="Script/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="Script/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="Script/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="Script/ckeditor/ckeditor.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1"  runat="server">
    <input name="newsContents" id="newsContents" type="hidden" value="" />
    <input name="ListLotteryNos" id="ListLotteryNos" type="hidden" value="" />
     <div class=" login">
        彩种方案</div>
    <div class="boder1 MTop">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="InfoTable">
            <tr>
                <td width="16%" class="Aright">
                 彩种类别
                </td>
                <td width="84%">
                    <asp:DropDownList ID="DropDownListLotteryType" runat="server"  AutoPostBack="true"
                        onselectedindexchanged="DropDownListLotteryType_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td width="16%" class="Aright">
                    彩种期号
                </td>
                <td width="84%">

                     <asp:DropDownList ID="DropDownListLotteryNo"  runat="server">
                     
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="Aright">
                   方案标题
                </td>
                <td>
                    <input type="text" id="newtitle"  runat="server" />
                </td>
            </tr>
            <tr>
                <td class="Aright">
                    方案描叙词
                </td>
                <td>
                    <input type="text" id="newKey"  runat="server" />
                </td>
            </tr>
               <tr>
                <td class="Aright">
                    方案描述
                </td>
                <td>
                    <input type="text" id="Exmiaoshu"  runat="server" />
                </td>
            </tr>
            <tr>
                <td class="Aright">
                    方案内容
                </td>
                <td>
                <textarea rows="45" cols="60" name="newsContent"  id="newsContent"></textarea>
                   
                </td>
            </tr>
            <tr>
                <td class="Aright">
                    设置访问的彩币：
                </td>
                <td>
                    <select  id="Selectnum" runat="server">
                    <option value="0">0彩币</option>
                      <option value="1">1彩币</option> <option value="2">2彩币</option> <option value="3">3彩币</option> <option value="4">4彩币</option> <option value="5">5彩币</option>
                       <option value="6">6彩币</option> <option value="7">7彩币</option> <option value="8">8彩币</option> <option value="9">9彩币</option> <option value="10">10彩币</option>
                     </select>
                </td>
            </tr>
            <tr>
                <td class="Aright">
                    备注
                </td>
                <td>
                    <textarea id="ExperRemark" cols="30" rows="3" >
                    </textarea>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                  <input type="button" id="submitExper"   value="方案申请提交" />
                </td>
            </tr>
        </table>
    </div>
    </form>

 <script type="text/javascript">
     $(document).ready(function () {
         CKEDITOR.replace('newsContent');
         $("#submitExper").click(function () {
             var LotteryTypes = $("#DropDownListLotteryType").val();
             var ListLotteryNos = $("#DropDownListLotteryNo").find("option:selected").text();
             var objcet = eval("(CKEDITOR.instances.newsContent)");
             $("#newsContents").val(objcet.getData());
             $("#submitExper").click(function () {
                 $.post("ashx/UsersHandler.ashx",
                                             {
                                                 parms: "ExpertNewAdd",
                                                 LotteryType: LotteryTypes,
                                                 LotteryNo: ListLotteryNos,
                                                 newtitle: $("#newtitle").val(),
                                                 newKey: $("#newKey").val(),
                                                 Exmiaoshu: $("#Exmiaoshu").val(),
                                                 newsContent: $("#newsContents").val(),
                                                 Selectnum: $("#Selectnum").val(),
                                                 ExperRemark: $("#ExperRemark").val()
                                             }, function (result) {
                                                 if (result == "1") {
                                                     alert("提交方案成功！等待审核中...");

                                                 } else {
                                                     // alert("提交方案失败!服务器繁忙...请稍后及联系客服!");
                                                     alert(result);
                                                 }
                                             });

             });

         });

     });
               
    </script>
</body>
</html>
